import { defHttp } from "@/utils/http";

// ERP 药品暂存 API
export const invtDrugTempApi = {
	// 获得药品暂存分页
	invtDrugTempList: async (params: any) => {
		return await defHttp.get({ url: `/whs/invt-drug-temp/page`, params });
	},
	// 新增药品暂存
	invtDrugTempCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/invt-drug-temp/create`, data });
	},

	// 修改药品暂存
	invtDrugTempUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/invt-drug-temp/update`, data });
	},

	// 删除药品暂存
	invtDrugTempDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/invt-drug-temp/delete?id=` + id });
	}
};
